package org.xiaojinlong.playground;

import java.util.regex.Pattern;

/**
 * @author Jin Long
 *         2016/1/28.
 */
public class TwoWord {
    public static void main(String[] args) {
        Pattern regex1 = Pattern.compile(
                "\\b([a-z]+)((?:\\s|<[^>]+>)+)(\\1\\b)",
                Pattern.CASE_INSENSITIVE);
        System.out.println(regex1.pattern());
    }
}
